package cn.com.clearbus.controller;



import cn.com.clearbus.dto.request.WxUserRequest;
import cn.com.clearbus.dto.response.ResultBean;
import cn.com.clearbus.entity.CUser;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.client.RestTemplate;

@RestController
@RefreshScope
@RequestMapping("/wx/user")
public class WxUserController {



    @Autowired
    RestTemplate restTemplate;

    @PostMapping("/wxRegister")
    public ResultBean<CUser> wxRegister(@RequestBody WxUserRequest wxUserRequest){
        CUser cUser = new CUser();
        wxUserRequest.dto2entity(cUser);
        return new ResultBean();
    }


}
